#include <iostream>
using namespace std;

int main()
{
    int a = 3;
    int b = 5;
    int *p = 0;
    int **pp = 0;

    printf("&a: %lld, &b: %lld\n&p: %lld, &pp: %lld\n", &a, &b, &p, &pp);

    p = &a;
    pp = &p;
    *pp = &b; // p = &b
    *p = 18;

    printf("a: %d, b: %d\np: %lld, pp: %lld\n", a, b, p, pp);
    return 0;
}